<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <title>Neumorphism Profile Card</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Poppins", sans-serif;
        }

        body {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            background: #ecf0f3;
        }

        /*拟态的阴影部分*/
        .wrapper .img-area,
        .social-icons a,
        .buttons button {
            background: #ecf0f3;
            box-shadow: -3px -3px 7px #fff, 3px 3px 5px #ceced1;

        }

        .wrapper {
            box-shadow: 14px 14px 20px #ceced1, -14px -14px 20px#fff;
        }

        /*布局*/
        .wrapper {
            position: relative;
            width: 350px;
            padding: 30px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

        .wrapper .icon {
            font-size: 17px;
            color: #31344b;
            position: absolute;
            cursor: pointer;
            opacity: 0.7;
            top: 15px;
            height: 35px;
            width: 35px;
            text-align: c;
            line-height: 35px;
            border-radius: 50%;
        }

        /*iconfont的图标样式*/
        .iconfont {
            width: 1em;
            height: 1em;
            fill: currentColor;
            vertical-align: -0.15em;
            overflow: hidden;
        }

        /*顶部两个按钮*/
        .wrapper .icon.arrow {
            left: 15px;
        }

        .wrapper .icon.dots {
            right: 15px;
        }

        /*头像部分*/
        .wrapper .img-area {
            height: 150px;
            width: 150px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .img-area .inner-area {
            height: calc(100% - 25px);
            width: calc(100% - 25px);
            border-radius: 50%;
        }

        .inner-area img {
            height: 100%;
            width: 100%;
            border-radius: 50%;
            object-fit: cover;
        }

        /*文字部分*/
        .wrapper .name {
            font-size: 22px;
            font-weight: 500;
            color: #31344b;
            margin: 10px 0 5px 0;
        }

        .wrapper .about {
            color: #44476a;
            font-weight: 400;
            font-size: 16;
        }

        .wrapper .social-icons {
            margin: 15px 0 25px 0;
        }

        .social-icons a {
            position: relative;
            height: 40px;
            width: 40px;
            margin: 0 5px;
            display: inline-flex;
            text-decoration: none;
            border-radius: 50%;
            padding: 0.25em;
        }

        /* hover效果 */
        .social-icons a:hover:before,
        .wrapper .icon:hover:before,
        .buttons button:hover:before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            border-radius: 50%;
            box-shadow: inset -3px -3px 7px#fff, inset 3px 3px 5px #ceced1;
        }

        .buttons button:hover:before {
            z-index: -1;
            border-radius: 5px;
        }

        .social-icons a svg {
            position: relative;
            z-index: 3;
            text-align: center;
            width: 100%;
            height: 100%;
            line-height: 40px;
        }

        /* button 部分  */
        .wrapper .buttons {
            display: flex;
            width: 100%;
            justify-content: space-between;
        }

        .buttons button {
            position: relative;
            width: 100%;
            border: none;
            outline: none;
            padding: 12px 0;
            color: #31344b;
            font-size: 17px;
            font-weight: 400;
            border-radius: 5px;
            cursor: pointer;
            z-index: 4;
        }

        .buttons button:first-child {
            margin-right: 10px;
        }

        .buttons button:last-child {
            margin-left: 10px;
        }

        .wrapper .social-share {
            display: flex;
            width: 100%;
            margin-top: 30px;
            padding: 0 5px;
            justify-content: space-between;
        }

        .social-share .row {
            color: ☐#31344b;
            font-size: 17px;
            position: relative;
        }

        .social-share .row::before {
            position: absolute;
            content: "";
            height: 100%;
            width: 2px;
            background: #e0e6eb;
            margin-left: -25px;
        }

        .row:first-child:before {
            background: none;
        }
    </style>
</head>

<body>
    <div class="wrapper">
        <div class="img-area">
            <div class="inner-area">
                <img src="https://picsum.photos/200/300?1" alt="" />
            </div>
        </div>
        <div class="icon arrow">
            <svg class="iconfont like" aria-hidden="true">
                <use xlink:href="#icon-fanhui"></use>
            </svg>
        </div>
        <div class="icon dots">
            <svg class="iconfont like" aria-hidden="true">
                <use xlink:href="#icon-sangediandian"></use>
            </svg>
        </div>
        <div class="name">想想卷王怎么做</div>
        <div class="about">萌新码农&萌新up</div>
        <div class="social-icons">
            <a href="https://space.bilibili.com/504540856?spm_id_from=333.100">
                <svg class="iconfont" aria-hidden="true">
                    <use xlink:href="#icon-querenbantubiao_Bzhan"></use>
                </svg>
            </a>
            <a href="#">
                <svg class="iconfont" aria-hidden="true">
                    <use xlink:href="#icon-QQ"></use>
                </svg>
            </a>
            <a href="#">
                <svg class="iconfont" aria-hidden="true">
                    <use xlink:href="#icon-shejiaotubiao-01"></use>
                </svg>
            </a>
            <a href="#">
                <svg class="iconfont" aria-hidden="true">
                    <use xlink:href="#icon-weibo"></use>
                </svg>
            </a>
        </div>
        <div class="buttons">
            <button>Message</button>
            <button>Subscribe</button>
        </div>

        <div class="social-share">
            <div class="row">
                <svg class="iconfont like" aria-hidden="true">
                    <use xlink:href="#icon-wodefensi"></use>
                </svg>
                <span>610</span>
            </div>
            <div class="row">
                <svg class="iconfont like" aria-hidden="true">
                    <use xlink:href="#icon-bofangliang"></use>
                </svg>
                <span>33.6k</span>
            </div>
            <div class="row">
                <svg class="iconfont like" aria-hidden="true">
                    <use xlink:href="#icon-dianzan"></use>
                </svg>
                <span>1.6k</span>
            </div>
        </div>
    </div>
    <script src="http://at.alicdn.com/t/font_3280423_6niwiedk8s2.js"></script>
</body>

</html>